import java.io.Serializable;
import java.util.ArrayList;


public class StateTable implements Serializable{
	
	private StateTable parent;
	private ArrayList<StateTable> children;
	private ArrayList<State> table;
	private int time;
	
	public StateTable(){
		table = new ArrayList<State>();
		time = 0;
	}
	
	public ArrayList<State> getTable(){
		return table;
	}
	public void updateStateTable(State s, long timeTaken){
		State a = table.remove(table.size()-1);
		a.setTime(timeTaken);
		table.add(a);
		table.add(s);
	}

}
